package com.r2coding.controller;

import com.r2coding.entity.CommentEntity;
import com.r2coding.mapper.CommentDao;
import com.r2coding.util.Result;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author: 98k灬
 * @since: 2022/10/31
 * @email: 98k_style@sina.com
 * @公众号: 爪哇Guy灬
 **/
@RestController
public class HelloController {
    @Autowired
    CommentDao commentDao;

    @GetMapping("/hello")
    public Result hello() {
        CommentEntity comment = commentDao.selectById("211004K23D53K4ZC");
        return Result.ok(comment);
    }
}
